package main

import (
	"bufio"
	"fmt"
	"io"
	"os"
)

func main() {
	fmt.Println("Hello World!")
	file, err := os.Open("./01-readinput.go")
	if err != nil {
		fmt.Println(err)
		return
	}

	inputReader := bufio.NewReader(file)
	for {
		strLine, err := inputReader.ReadString('\n')
		if err == io.EOF { // 结尾
			return
		}
		fmt.Printf("Line data:%s\n", strLine)
	}
}
